package org.mspring.platform.web.freemarker.widget.http.impl;

import org.mspring.platform.web.freemarker.widget.http.HttpWidget;
import org.mspring.platform.web.freemarker.widget.http.HttpWidgetRequest;
import org.mspring.platform.web.freemarker.widget.http.HttpWidgetResponse;

/**
 * @author Gao Youbo
 * @since 2012-12-5
 */
public class DefaultHttpWidget implements HttpWidget {

    private static final long serialVersionUID = 1492893004932778596L;
    private HttpWidgetRequest widgetRequest;
    private HttpWidgetResponse widgetResponse;

    /**
     * @param widgetRequest
     * @param widgetResponse
     */
    public DefaultHttpWidget(HttpWidgetRequest widgetRequest, HttpWidgetResponse widgetResponse) {
        super();
        this.widgetRequest = widgetRequest;
        this.widgetResponse = widgetResponse;
    }

    @Override
    public HttpWidgetRequest getWidgetRequest() {

        return widgetRequest;
    }

    @Override
    public HttpWidgetResponse getWidgetResponse() {

        return widgetResponse;
    }

}
